import request from "./request";

//登录
export async function login(data) {
    const res = await request({
        url: '/member/user?apifoxResponseId=363833861',
        method: 'post',
        data
    });
    //注意：最后需要把res返回，前台执行方法时才能取到res!!!
    return res
}

//注册
export async function register(data) {
    const res = await request({
        url: '/member/user',
        method: 'post',
        data
    });
    return res
}

//获取验证码
export async function getAuthCode(data) {
    const res = await request({
        url: '/member/login/code',
        method: 'post',
        data
    });
    return res
}